package com.ibm.cps.forwarder;

import java.util.concurrent.ThreadFactory;

public class ThreadHandlerFactory implements ThreadFactory {

	@Override
	public Thread newThread(Runnable r) {
		Thread thread = new Thread(r);
		thread.setUncaughtExceptionHandler(new RuntimeExceptionHandler());
		return thread;
	}

}
